import requests
from pytest_html.extras import json


class IHRM_login_DY:
    # 封装ihrm断言
    @classmethod
    def ihrm_add_dy(cls, resp, status_code, success, code, message):
        assert resp.status_code == status_code
        assert resp.json().get("success") == success
        assert resp.json().get("code") == code
        assert resp.json().get("message") == message

    # @classmethod
    # def ihrm_del_dep(cls):
    #     def ihrm_add_dy(cls, resp, status_code, success, code, message):
    #         assert resp.status_code == status_code
    #         assert resp.json().get("success") == success
    #         assert resp.json().get("code") == code
    #         assert resp.json().get("message") == message


